import useRoutesWithGuard from './routes/useRoutesWithGuard'
import routes from './routes'
import {Fragment,Suspense} from 'react'

const Base = ()=>{
    let Element = useRoutesWithGuard('qf-token',routes)
    return (
        <Fragment>
            <Suspense>
                {
                    Element
                }
            </Suspense>
        </Fragment>
    )
}

export default Base